<?php
	header("content-type:text/html;charset=utf8");
	$pdo = new PDO('mysql:host=127.0.0.1;dbname=kycp;charset=utf8','root','root');
	$id = $_GET['id'];
	$sql = "delete from ceshi where id=$id";
	$data = $pdo->exec($sql);
	if($data){
		echo "<script>alert('删除成功!');location.href='show.php'</script>";
	}else{
		echo "<script>alert('删除失败!');history.go(-1)</script>";
	}
?>